package com.fys.user.service.impl;

import com.fys.user.dataobject.UserInfo;
import com.fys.user.repository.UserRepository;
import com.fys.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository userRepository;


    @Override
    public UserInfo findByOpenId(String openId) {
        return userRepository.findByOpenid(openId);
    }
}
